package com.skeleton.db.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.skeleton.db.dto.ShowinfoDto;

public class Showinfo {

	private String show_id;
	private String show_title;
	private String show_people;
	private String show_commnet;
	private char show_status;
	private Date start_dttm;
	private Date end_dttm;
	private Date finish_dttm;

	SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日 HH时mm分ss秒");

	public ShowinfoDto toDto() {
		ShowinfoDto dto = new ShowinfoDto();
		dto.setShowId(show_id);
		dto.setShowTitle(show_title);
		dto.setShowPeople(show_people);
		dto.setShowCommnet(show_commnet);
		dto.setShowStatus(show_status);
		dto.setStartDttm(start_dttm);
		if (start_dttm != null) {
			dto.setStartDttmStr(sdf.format(start_dttm));
		}
		dto.setEndDttm(end_dttm);
		if (end_dttm != null) {
			dto.setEndDttmStr(sdf.format(end_dttm));
		}
		dto.setFinishDttm(finish_dttm);
		if (finish_dttm != null) {
			dto.setFinishDttmStr(sdf.format(finish_dttm));
		}
		return dto;
	}

	public String getShow_id() {
		return show_id;
	}

	public void setShow_id(String show_id) {
		this.show_id = show_id;
	}

	public String getShow_title() {
		return show_title;
	}

	public void setShow_title(String show_title) {
		this.show_title = show_title;
	}

	public String getShow_people() {
		return show_people;
	}

	public void setShow_people(String show_people) {
		this.show_people = show_people;
	}

	public String getShow_commnet() {
		return show_commnet;
	}

	public void setShow_commnet(String show_commnet) {
		this.show_commnet = show_commnet;
	}

	public char getShow_status() {
		return show_status;
	}

	public void setShow_status(char show_status) {
		this.show_status = show_status;
	}

	public Date getStart_dttm() {
		return start_dttm;
	}

	public void setStart_dttm(Date start_dttm) {
		this.start_dttm = start_dttm;
	}

	public Date getEnd_dttm() {
		return end_dttm;
	}

	public void setEnd_dttm(Date end_dttm) {
		this.end_dttm = end_dttm;
	}

	public Date getFinish_dttm() {
		return finish_dttm;
	}

	public void setFinish_dttm(Date finish_dttm) {
		this.finish_dttm = finish_dttm;
	}

}
